package com.roncoo.education.course.service.dao.impl.mapper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author hhg
 * @since 2020-04-03
 * 题目
 */
@Data
public class Topic extends Model<Topic> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 题目名称
     */
    @ApiModelProperty("题目名称")
    private String title;

    /**
     * 单选多选
     */
    @ApiModelProperty("单选多选")
    private Integer type;

    /**
     * 正确答案
     */
    @ApiModelProperty("正确答案")
    private String answer;

    /**
     * 选项
     */
    @ApiModelProperty("选项")
    private String topic;

    private LocalDateTime gmtCreate;

    private LocalDateTime gmtModified;

    /**
     * 关联答题库
     */
    @ApiModelProperty("关联答题库")
    private Long courseTopicId;

    @ApiModelProperty("状态")
    private Integer statusId;

}
